package org.zjx.command.entity.screen;

import lombok.Data;

import java.awt.*;
import java.awt.image.BufferedImage;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

@Data
public class Room {
    public final String name;
    public final List<Npc> npcs = new ArrayList<>();
    public final TabMap tabMap;
    public final Map<BufferedImage, Point> imageLocations = new HashMap<>();

    public Room(String name, TabMap tabMap) {
        this.name = name;
        this.tabMap = tabMap;
    }

    public Room addNpc(Npc npc) {
        npcs.add(npc);
        return this;
    }

    public Room addImageLocations(BufferedImage image, Point point) {
        imageLocations.put(image, point);
        return this;
    }
}
